<div class="canbiardatos">
  <div id="dialog" title="Cambiar Contrase&ntilde;a">
      <form id="form_cambiopwd" action="/index.php" method="post">
          <table width="580" border="0">  
          <tr>
              <td width="200">
                <label for="contrasena">Contrase&ntilde;a antigua</label>
              </td>
              <td width="370">
                <span id="validacion_text_pass0">
                  <input type="password" name="contrasena" id="contrasena" />
                  <span class="passwordRequiredMsg">Debes ingresar una contrase&ntilde;a.</span> 
                  <span class="passwordMaxCharsMsg">Haz excedido el m&aacute;ximo n&uacute;mero de caracteres (10).</span>
                </span>
              </td>
          </tr>    
          <tr>
              <td>
                <label for="contrasena1">Contrase&ntilde;a nueva</label>
              </td>
              <td>
                <span id="validacion_text_pass1">
                  <input type="password" name="contrasena1" id="contrasena1" />
                  <span class="passwordRequiredMsg">Debes ingresar una contrase&ntilde;a.</span> 
                  <span class="passwordMaxCharsMsg">Haz excedido el m&aacute;ximo n&uacute;mero de caracteres (10).</span>
                </span>
              </td>
          </tr>
          <tr>
              <td>
                <label for="contrasena2">Confirmar contrase&ntilde;a nueva</label>
              </td>
              <td>
                <span id="validacion_text_pass2">
                  <input type="password" name="contrasena2" id="contrasena2" />
                  <span class="confirmRequiredMsg">Debes confirmar la contrase&ntilde;a.</span>
                  <span class="confirmInvalidMsg">Las contrase&ntilde;as no coinciden.</span>
                </span>
              </td>
          </tr>
        </table>      
     </form>   
  </div>
  
  <button id="opener" class="boton">Cambiar</button>
</div><!-- End demo -->

<script type="text/javascript">
  var val_text_pass0 = new Spry.Widget.ValidationPassword("validacion_text_pass0", {maxChars:10, validateOn:["change"]});
  var val_text_pass1 = new Spry.Widget.ValidationPassword("validacion_text_pass1", {maxChars:10, validateOn:["change"]});
  var val_text_pass2 = new Spry.Widget.ValidationConfirm("validacion_text_pass2", "validacion_text_pass1", {validateOn:["blur"]});
</script>
